package bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Transient;

import java.util.List;
import org.greenrobot.greendao.annotation.Generated;

@Entity
public class OrderBean {
    @Id
    private String orderId;
    private int confirmStatus;
    private String ip;
    private Double costFreight;
    private Double goodsAmount;
    private String createTime;
    private Double couponDiscountAmount;
    private Double goodsDiscountAmount;
    private boolean isdel;
    private boolean isComment;
    private int logisticsId;
    private double weight;
    private int userId;
    private int storeId;
    private int status;
    private int source;
    private String logisticsName;
    private String mark;
    private int orderType;
    private int sellerId;
    private Double orderAmount;
    private Double payedAmount;
    private Double orderDiscountAmount;
    private int objectId;
    private String paymentCode;
    private int payStatus;
    private String paymentTime;
    private String confirmTime;
    private int receiptType;
    private String classBillNo;
    private int shipStatus;
    @Transient // 这个字段不会被存进数据库
    private List<PaymentListBean> paymentList;
    @Transient
    private List<OrderItemBean> items;
    @Transient
    private int sumQuantity;
    @Transient
    private int posId;

    public int getPosId() {
        return posId;
    }

    public void setPosId(int posId) {
        this.posId = posId;
    }

    public int getSumQuantity() {
        return sumQuantity;
    }

    public void setSumQuantity(int sumQuantity) {
        this.sumQuantity = sumQuantity;
    }

    @Generated(hash = 1351900702)
    public OrderBean(String orderId, int confirmStatus, String ip,
            Double costFreight, Double goodsAmount, String createTime,
            Double couponDiscountAmount, Double goodsDiscountAmount, boolean isdel,
            boolean isComment, int logisticsId, double weight, int userId,
            int storeId, int status, int source, String logisticsName, String mark,
            int orderType, int sellerId, Double orderAmount, Double payedAmount,
            Double orderDiscountAmount, int objectId, String paymentCode,
            int payStatus, String paymentTime, String confirmTime, int receiptType,
            String classBillNo, int shipStatus) {
        this.orderId = orderId;
        this.confirmStatus = confirmStatus;
        this.ip = ip;
        this.costFreight = costFreight;
        this.goodsAmount = goodsAmount;
        this.createTime = createTime;
        this.couponDiscountAmount = couponDiscountAmount;
        this.goodsDiscountAmount = goodsDiscountAmount;
        this.isdel = isdel;
        this.isComment = isComment;
        this.logisticsId = logisticsId;
        this.weight = weight;
        this.userId = userId;
        this.storeId = storeId;
        this.status = status;
        this.source = source;
        this.logisticsName = logisticsName;
        this.mark = mark;
        this.orderType = orderType;
        this.sellerId = sellerId;
        this.orderAmount = orderAmount;
        this.payedAmount = payedAmount;
        this.orderDiscountAmount = orderDiscountAmount;
        this.objectId = objectId;
        this.paymentCode = paymentCode;
        this.payStatus = payStatus;
        this.paymentTime = paymentTime;
        this.confirmTime = confirmTime;
        this.receiptType = receiptType;
        this.classBillNo = classBillNo;
        this.shipStatus = shipStatus;
    }
    @Generated(hash = 1725534308)
    public OrderBean() {
    }

    public List<PaymentListBean> getPaymentList() {
        return paymentList;
    }

    public void setPaymentList(List<PaymentListBean> paymentList) {
        this.paymentList = paymentList;
    }

    public List<OrderItemBean> getItems() {
        return items;
    }

    public void setItems(List<OrderItemBean> items) {
        this.items = items;
    }

    public String getOrderId() {
        return this.orderId;
    }
    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }
    public int getConfirmStatus() {
        return this.confirmStatus;
    }
    public void setConfirmStatus(int confirmStatus) {
        this.confirmStatus = confirmStatus;
    }
    public String getIp() {
        return this.ip;
    }
    public void setIp(String ip) {
        this.ip = ip;
    }
    public Double getCostFreight() {
        return this.costFreight;
    }
    public void setCostFreight(Double costFreight) {
        this.costFreight = costFreight;
    }
    public Double getGoodsAmount() {
        return this.goodsAmount;
    }
    public void setGoodsAmount(Double goodsAmount) {
        this.goodsAmount = goodsAmount;
    }
    public String getCreateTime() {
        return this.createTime;
    }
    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }
    public Double getCouponDiscountAmount() {
        return this.couponDiscountAmount;
    }
    public void setCouponDiscountAmount(Double couponDiscountAmount) {
        this.couponDiscountAmount = couponDiscountAmount;
    }
    public Double getGoodsDiscountAmount() {
        return this.goodsDiscountAmount;
    }
    public void setGoodsDiscountAmount(Double goodsDiscountAmount) {
        this.goodsDiscountAmount = goodsDiscountAmount;
    }
    public boolean getIsdel() {
        return this.isdel;
    }
    public void setIsdel(boolean isdel) {
        this.isdel = isdel;
    }
    public boolean getIsComment() {
        return this.isComment;
    }
    public void setIsComment(boolean isComment) {
        this.isComment = isComment;
    }
    public int getLogisticsId() {
        return this.logisticsId;
    }
    public void setLogisticsId(int logisticsId) {
        this.logisticsId = logisticsId;
    }
    public double getWeight() {
        return this.weight;
    }
    public void setWeight(double weight) {
        this.weight = weight;
    }
    public int getUserId() {
        return this.userId;
    }
    public void setUserId(int userId) {
        this.userId = userId;
    }
    public int getStoreId() {
        return this.storeId;
    }
    public void setStoreId(int storeId) {
        this.storeId = storeId;
    }
    public int getStatus() {
        return this.status;
    }
    public void setStatus(int status) {
        this.status = status;
    }
    public int getSource() {
        return this.source;
    }
    public void setSource(int source) {
        this.source = source;
    }
    public String getLogisticsName() {
        return this.logisticsName;
    }
    public void setLogisticsName(String logisticsName) {
        this.logisticsName = logisticsName;
    }
    public String getMark() {
        return this.mark;
    }
    public void setMark(String mark) {
        this.mark = mark;
    }
    public int getOrderType() {
        return this.orderType;
    }
    public void setOrderType(int orderType) {
        this.orderType = orderType;
    }
    public int getSellerId() {
        return this.sellerId;
    }
    public void setSellerId(int sellerId) {
        this.sellerId = sellerId;
    }
    public Double getOrderAmount() {
        return this.orderAmount;
    }
    public void setOrderAmount(Double orderAmount) {
        this.orderAmount = orderAmount;
    }
    public Double getPayedAmount() {
        return this.payedAmount;
    }
    public void setPayedAmount(Double payedAmount) {
        this.payedAmount = payedAmount;
    }
    public Double getOrderDiscountAmount() {
        return this.orderDiscountAmount;
    }
    public void setOrderDiscountAmount(Double orderDiscountAmount) {
        this.orderDiscountAmount = orderDiscountAmount;
    }
    public int getObjectId() {
        return this.objectId;
    }
    public void setObjectId(int objectId) {
        this.objectId = objectId;
    }
    public String getPaymentCode() {
        return this.paymentCode;
    }
    public void setPaymentCode(String paymentCode) {
        this.paymentCode = paymentCode;
    }
    public int getPayStatus() {
        return this.payStatus;
    }
    public void setPayStatus(int payStatus) {
        this.payStatus = payStatus;
    }
    public String getPaymentTime() {
        return this.paymentTime;
    }
    public void setPaymentTime(String paymentTime) {
        this.paymentTime = paymentTime;
    }
    public String getConfirmTime() {
        return this.confirmTime;
    }
    public void setConfirmTime(String confirmTime) {
        this.confirmTime = confirmTime;
    }
    public int getReceiptType() {
        return this.receiptType;
    }
    public void setReceiptType(int receiptType) {
        this.receiptType = receiptType;
    }
    public String getClassBillNo() {
        return this.classBillNo;
    }
    public void setClassBillNo(String classBillNo) {
        this.classBillNo = classBillNo;
    }
    public int getShipStatus() {
        return this.shipStatus;
    }
    public void setShipStatus(int shipStatus) {
        this.shipStatus = shipStatus;
    }

    public static class PaymentListBean {
        private int paymentId;
        private String classBillNo;
        private double changeAmount;
        private int dataType;
        private double sendAmount;
        private double payAmount;
        private String orderId;
        private String scomment;
        private double cashAmount;

        public double getCashAmount() {
            return cashAmount;
        }

        public void setCashAmount(double cashAmount) {
            this.cashAmount = cashAmount;
        }

        public String getScomment() {
            return scomment;
        }

        public void setScomment(String scomment) {
            this.scomment = scomment;
        }

        public PaymentListBean(int paymentId, String classBillNo, double changeAmount, int dataType,
                               double sendAmount, double payAmount, String orderId,String scomment) {
            this.paymentId = paymentId;
            this.classBillNo = classBillNo;
            this.changeAmount = changeAmount;
            this.dataType = dataType;
            this.sendAmount = sendAmount;
            this.payAmount = payAmount;
            this.orderId = orderId;
            this.scomment = scomment;
        }

        public int getPaymentId() {
            return paymentId;
        }

        public void setPaymentId(int paymentId) {
            this.paymentId = paymentId;
        }

        public String getClassBillNo() {
            return classBillNo;
        }

        public void setClassBillNo(String classBillNo) {
            this.classBillNo = classBillNo;
        }

        public double getChangeAmount() {
            return changeAmount;
        }

        public void setChangeAmount(double changeAmount) {
            this.changeAmount = changeAmount;
        }

        public int getDataType() {
            return dataType;
        }

        public void setDataType(int dataType) {
            this.dataType = dataType;
        }

        public double getSendAmount() {
            return sendAmount;
        }

        public void setSendAmount(double sendAmount) {
            this.sendAmount = sendAmount;
        }

        public double getPayAmount() {
            return payAmount;
        }

        public void setPayAmount(double payAmount) {
            this.payAmount = payAmount;
        }

        public String getOrderId() {
            return orderId;
        }

        public void setOrderId(String orderId) {
            this.orderId = orderId;
        }
    }
}
